<?php
/* @var $this ShiftChangeController */
/* @var $model ShiftChange */

?>

<h1>Viewing Shift Change for <?php echo $model->day_requested; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'idshift_change',
		array(
			'name'=>'Requestor',
			'value'=>$model->requestingUser_relation->fullname),	
		array(
			'name'=>'Requestor\'s Shift',
			'value'=>($model->current_shift != null)? $model->getCurrentShift() : null),		
		array(
			'name'=>'Requested Shift',
			'value'=>$model->requestedShift_relation->name),	
		array(
			'name'=>'Requested Q-Shift',
			'value'=>$model->requestedQshift_relation->name),			
		'day_requested',
		array(
			'name'=>'Status',
			'value'=>$model->getStatus($model->request_status)),	
		array(
			'name'=>'Target User',
			'value'=>$model->getTargetUserFullName()),	
		array(
			'name'=>'Is a Swap?',
			'value'=>User::getYesNoValue($model->is_swap)),			
		'comments',
	),
)); ?>
